package com.shop.trade.api.api;

import com.shop.common.model.param.trade.OrderCommentInput;
import com.shop.common.util.excption.UserNotFoundException;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description:
 *
 * @author zhoulk
 * @date: 2019年04月16日  3:41
 */
@RequestMapping(value = "/trade")
public interface IOrderCommentApi {

    @PostMapping("/comment")
    String addComment(@RequestBody OrderCommentInput orderCommentInput, HttpServletRequest request) throws UserNotFoundException;

    @PutMapping("/comment")
    String modComment(@RequestBody OrderCommentInput input, HttpServletRequest request);

    @DeleteMapping("/comment")
    String delComment(Integer id, HttpServletRequest request);

    @GetMapping("/comment")
    String qryComment(OrderCommentInput orderCommentInput, HttpServletRequest request);

    @GetMapping("/comments")
    String qryComments(OrderCommentInput orderCommentInput, HttpServletRequest request) throws UserNotFoundException;

    @GetMapping("/comments4P")
    String qryComments4P(OrderCommentInput orderCommentInput, Integer index,Integer pageSize, HttpServletRequest request) throws UserNotFoundException;

    @GetMapping(value = "/comment/count")
    String commentCount(OrderCommentInput orderCommentInput,HttpServletRequest request) throws UserNotFoundException;
}
